﻿namespace OpenCompiler.AST
{
	public class NamedStatement<T> : Statement<T>
		where T:class
	{
		internal NamedStatement(Statement parent, string name)
			: base(parent)
		{
			this.Name = name;
		}

		public string Name { get; private set; }

		public override string ToString()
		{
			return this.Name;
		}
	}
}
